package com.gdx.game.resource;

import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class ResourceManager {

    public AssetManager assetManager;
    public TextureAtlas atlas;

    public TextureRegion[] title469x94;

    public TextureRegion icoClose20x20;
    public TextureRegion btnStart100x50;


    public ResourceManager() {
        assetManager = new AssetManager();

        assetManager.load("common.atlas", TextureAtlas.class);
        assetManager.finishLoading();
        atlas = assetManager.get("common.atlas", TextureAtlas.class);

        title469x94 = atlas.findRegion("title").split(18, 94)[0];
        btnStart100x50 = atlas.findRegion("btn_start");
        icoClose20x20 = atlas.findRegion("ico_close");
    }
}
